<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables"> PICKUP MAINTENENCE </a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/pickup/pickup_code_submit" method="post">
                <fieldset>
                    <legend>Pickup : NEW </legend>
                    <?php
                    if ($this->session->flashdata('message')) {
                        echo '<font color="red">' . $this->session->flashdata('message') . '</font>';
                    }
                    ?>
                    <div class="field">
                        <label> Pickup Description</label>
                        <input type="text" name="pickup_code_description" size="75" />
                        <input type="submit" value="Add New" />
                    </div>
                </fieldset>
            </form>
        </div>
    </div> <!-- END OF BOX -->

    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">PICKUP LIST</a>
        </h2>
        <div class="block" >
            <fieldset>
                <legend>List :</legend>
                <?php foreach ($pickup_code as $pickup_code): ?> 


                    <form name="pickup_update" method="POST" action="<?= base_url(); ?>admin/pickup/pickup_code_update">
                        <div class="field">
                            <input name ="id" type="hidden" size="10" value="<?= $pickup_code->id; ?>" />
                            <input name ="description" type="text" size="75" value="<?= $pickup_code->description; ?>" />
                            <input type="submit" value="Update" onclick="return confirm('Are you sure you want to Update?')" />
                            <div id="link-button" style="float: right">
                                <a href="<?= base_url(); ?>admin/pickup/pickup_code_delete/<?= $pickup_code->code; ?>" class="link-button" onclick="return confirm('Are you sure you want to Delete?')"> Delete </a>
                                <a href="<?= base_url(); ?>admin/pickup/pickup_detail/<?= $pickup_code->code; ?>" class="link-button"> View Detail </a>
                            </div>
                        </div>
                    </form>


                <?php endforeach; ?>
            </fieldset>
        </div>
        <div class="pagination" align="left"> <?php echo $this->pagination->create_links(); ?>  </div>
    </div> <!-- END OF BOX -->
</div>
